package com.flycard.product.service.impl;
import com.flycard.product.Product;
import com.flycard.product.service.ProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;


@Service
public class ProductServiceImpl implements ProductService {

    @Override
    public Product getProductById(long productId) {
        Product product = new Product();

        product.setId(productId);
        product.setName("苹果" + productId);
        product.setNum(2);
        product.setPrice(new BigDecimal(100));

        return product;
    }
}
